package com.fh.config;


import com.fh.model.Users;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "user-check",fallback = UserLoginClientFallback.class)
public interface UserLoginClient {

    @GetMapping("user/check")
    public Users queryUser(@RequestParam("username") String username);

}
